﻿<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>{$setting.site_name} 后台管理系统</title>
<meta name="keywords" content="{$setting.site_keywords}" />
<meta name="description" content="{$setting.site_description}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- basic styles -->
<link href="__ADMIN_CSS__/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="__ADMIN_CSS__/font-awesome.min.css" />

<!--[if IE 7]>
		  <link rel="stylesheet" href="__ADMIN_CSS__/font-awesome-ie7.min.css" />
		<![endif]-->

<!-- page specific plugin styles -->

<!-- fonts -->

<!-- ace styles -->

<link rel="stylesheet" href="__ADMIN_CSS__/ace.min.css" />
<link rel="stylesheet" href="__ADMIN_CSS__/ace-rtl.min.css" />
<link rel="stylesheet" href="__ADMIN_CSS__/ace-skins.min.css" />

<!--[if lte IE 8]>
		  <link rel="stylesheet" href="__ADMIN_CSS__/ace-ie.min.css" />
		<![endif]-->

<!-- inline styles related to this page -->

<!-- ace settings handler -->

<script src="__ADMIN_JS__/ace-extra.min.js"></script>

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

<!--[if lt IE 9]>
		<script src="__ADMIN_JS__/html5shiv.js"></script>
		<script src="__ADMIN_JS__/respond.min.js"></script>
		<![endif]-->
</head>

<body>
<div class="navbar navbar-default" id="navbar"> 
  <script type="text/javascript">
				try{ace.settings.check('navbar' , 'fixed')}catch(e){}
			</script>
  <div class="navbar-container" id="navbar-container">
    <!-- <div class="navbar-header pull-left"> <a href="#" class="navbar-brand"> <small> <i class="icon-leaf"></i> 后台管理系统 </small> </a> --><!-- /.brand --> 
    <div class="navbar-header pull-left"> <a href="#" class="navbar-brand"><img src="__ADMIN_IMAGES__/admin_logo.png" style="height:24px;"></a>
    </div>
    <!-- /.navbar-header -->
 
    <div class="navbar-header pull-right" role="navigation">
      <ul class="nav ace-nav">
        <li class="light-blue"> <a data-toggle="dropdown" href="#" class="dropdown-toggle"> <img class="nav-user-photo" src="__ADMIN_AVATARS_/user.jpg" alt="Jason's Photo" /> <span class="user-info"> <small>欢迎光临,</small> {$_SESSION['ADMIN_NAME']} </span> <i class="icon-caret-down"></i> </a>
          <ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
            <li> <a onclick="right_content.location='{:U('Admin/Setting/index')}'"  href="#"> <i class="icon-cog"></i> 设置 </a> </li>
			<li> <a onclick="right_content.location='{:U('Admin/Setting/cache')}'"  href="#"> <i class="icon-trash"></i> 清除缓存 </a> </li>
            <li> <a onclick="right_content.location='{:U('Admin/Rule/edit_admin')}/id/{$Think.session.ADMIN_ID}'" href="#"> <i class="icon-user"></i> 个人资料 </a> </li>
            <li class="divider"></li>
            <li> <a href="{:U('Admin/Login/logout')}"> <i class="icon-off"></i> 退出 </a> </li>
          </ul>
        </li>
      </ul>
      <!-- /.ace-nav --> 
    </div>
    <!-- /.navbar-header --> 
  </div>
  <!-- /.container --> 
</div>
<div class="main-container" id="main-container"> 
  <script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>
  <div class="main-container-inner"> <a class="menu-toggler" id="menu-toggler" href="#"> <span class="menu-text"></span> </a>
    <div class="sidebar" id="sidebar"> 
      <script type="text/javascript">
						try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
					</script>
      <div class="sidebar-shortcuts" id="sidebar-shortcuts">
        <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
       <a href="/" class="btn btn-success" target="_blank">   <i class="icon-home "></i>  </a>
          <button class="btn btn-info"> <i class="icon-pencil"></i> </button>
          <button class="btn btn-warning"> <i class="icon-group"></i> </button>
          <button class="btn btn-danger" onclick="right_content.location='{:U('Admin/Rule/index')}'"> <i class="icon-cogs"></i> </button>
        </div>
        <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini"> <span class="btn btn-success"></span> <span class="btn btn-info"></span> <span class="btn btn-warning"></span> <span class="btn btn-danger" ></span> </div>
      </div>
      <!-- #sidebar-shortcuts -->
      
      <ul class="nav nav-list">
        <li class="active">
			<a href="{:U('Admin/Index/index')}">
				<i class="icon-dashboard"></i>
				<span class="menu-text"> 控制台 </span>
			</a>
		</li>
        <foreach name="data" item="v">
              <empty name="v['_data']">
                <li class="b-nav-li"><a href="{:U($v['mca'])}" target="right_content"><i class="icon-{$v['ico']}"></i> <span class="menu-text">{$v['name']}</span></a></li>
                <else/>
                <li class="b-has-child"><a href="#" class="dropdown-toggle b-nav-parent"><i class="icon-{$v['ico']}"></i> <span class="menu-text">{$v['name']}</span><b class="arrow icon-angle-down"></b></a>
                  <ul class="submenu">
                    <foreach name="v['_data']" item="n">
                      <li class="b-nav-li"><a href="{:U($n['mca'])}" target="right_content"><i class="icon-double-angle-right"></i> {$n['name']}</a></li>
                    </foreach>
                  </ul>
                </li>
              </empty>
        </foreach>
       </ul>
      <!-- /.nav-list -->
      
      <div class="sidebar-collapse" id="sidebar-collapse"> <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i> </div>
      <script type="text/javascript">
						try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
					</script> 
    </div>
    <div class="main-content">
      <iframe id="content-iframe" src="{:U('Admin/Index/welcome')}" frameborder="0" width="100%" height="100%" name="right_content" scrolling="auto" frameborder="0" scrolling="no">
      </iframe>
      <!-- /.page-content --> 
    </div>
    <!-- /.main-content -->
    
    <div class="ace-settings-container" id="ace-settings-container">
      <div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn"> <i class="icon-cog bigger-150"></i> </div>
      
      <div class="ace-settings-box" id="ace-settings-box">
        <div>
          <div class="pull-left">
            <select id="skin-colorpicker" class="hide">
              <option data-skin="default" value="#438EB9">#438EB9</option>
              <option data-skin="skin-1" value="#222A2D">#222A2D</option>
              <option data-skin="skin-2" value="#C6487E">#C6487E</option>
              <option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
            </select>
          </div>
          <span>&nbsp; 选择皮肤</span> </div>
        <div>
          <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-navbar" />
          <label class="lbl" for="ace-settings-navbar"> 固定导航条</label>
        </div>
        <div>
          <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
          <label class="lbl" for="ace-settings-sidebar"> 固定滑动条</label>
        </div>
        <div>
          <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-breadcrumbs" />
          <label class="lbl" for="ace-settings-breadcrumbs">固定面包屑</label>
        </div>
        <div>
          <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
          <label class="lbl" for="ace-settings-rtl">切换到左边</label>
        </div>
        <div>
          <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
          <label class="lbl" for="ace-settings-add-container"> 切换窄屏 <b></b> </label>
        </div>
      </div>
      
      
    </div>
    <!-- /#ace-settings-container --> 
  </div>
  <!-- /.main-container-inner --> 
  <a href="javascript:void(0)" onclick="document.getElementById('content-iframe').contentWindow.location.reload(true);" title="刷新" class="btn-scroll-up btn btn-sm btn-inverse" style="top:170px;border: 0;position: absolute;z-index: 11;border-radius: 3px;opacity: 0.6;height: 30px;"> <i class="icon-refresh  bigger-150" style=" margin-right:0px"></i> </a> 
  
  
  <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse"> <i class="icon-double-angle-up icon-only bigger-110"></i> </a> </div>
<!-- /.main-container --> 

<!-- basic scripts --> 

<include file="Layout/js"/>
 
<!-- inline scripts related to this page --> 

         <script type="text/javascript">
		 
$(function(){
    // 导航点击事件
    $('.b-nav-li').click(function(event) {
        $('.active').removeClass('active');
        var ulObj=$(this).parents('.b-has-child').eq(0);
        $(this).addClass('active');
        // alert(2);
        if(ulObj.length!=0){
            $(this).parents('.b-has-child').eq(0).addClass('active');
        }
    });
    // 动态调整iframe的高度以适应不同高度的显示器
    $('.page-content,.main-content').height($(window).height());
    $('.page-content').css('padding-bottom',50);

    // 左侧菜单自动适应高度
    //$('#sidebar .nav-list').height($(window).height());
})
</script>

<style>
.tipfloat{display:none; z-index:999; position:fixed; right:1px; bottom:1px; width:300px; height:198px; overflow:hidden; background-color:#fff; box-shadow:0 0 8px 0 rgba(0,0,0,.25); border-radius:4px;}
.tipfloat .tiphead{height:28px; line-height:28px; overflow:hidden; padding:0 8px;}
.tipfloat .tiphead strong{float:left; font-size:12px; font-weight:normal;} 
.tipfloat .tiphead .close1{display:block; float:right; margin:5px 0 0 0; width:18px; height:18px; overflow:hidden; cursor:pointer; background:url(__ADMIN_CSS__/images/tips-close.png) no-repeat center center;}
.tipfloat .tipbody{padding:0 8px; height:133px; line-height:133px; text-align:center; font-size:14px;}
.tipfloat .tipfoot{height:36px; line-height:36px; border-top:1px solid #e8e6e6;}
.tipfloat .tipfoot a{float:left; height:36px; text-align:center; color:#999; font-size:14px; width:50%; box-sizing:border-box;}
.tipfloat .tipfoot a:hover{text-decoration:none;}
.tipfloat .tipfoot a.link1{color:#61b3f6;}
.tipfloat .tipfoot a+a{border-left:1px solid #e8e6e6;}
</style>
<div class="tipfloat" style="display:none">
  <div class="tiphead"><strong>信息提示</strong><span title="关闭" class="close1"></span></div>
  <div class="tipbody">
    <p id="text"></p>
  </div>
  <div class="tipfoot"><a href="javascript:;" class="close1">关闭</a><a href="{:U('Admin/Member/withdrawals')}/" target="right_content" class="link1">查看</a></div>
</div>

<script type="text/javascript">
$(function(){
  $(".close1").click(function(){
    $(".tipfloat").animate({bottom:"-100%"},1000);
  });
  function myfunc(){
  $.post("{:U('Admin/Index/get_cash')}",{t:1},function(e){
if(e.status==1){
  $(".tipfloat").animate({bottom:"1"},4000)
}else{
$(".tipfloat").hide();
}

},'json')
  
  }
  var myInterval=setInterval(myfunc,1000);
});

</script>



</body>
</html>
